<template>
    <div class="referCheck-imgCard">
        <img :src="src"
             alt="head">
        <div class="referCheck-imgCard-name">{{name}}</div>
        <el-button icon="el-icon-close"
                   type="text"
                   @click="del"
                   class="referCheck-imgCard-del"></el-button>
    </div>
</template>
<script>
export default {
    props: {
        src: String,
        id: String,
        name: String
    },
    methods: {
        del() {
            this.$emit('del', this.id)
        }
    }
}
</script>
<style lang='less'>
.referCheck-imgCard {
    position: relative;
    width: 60px;

    img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
    }

    &-name {
        padding: 5px;
        text-align: center;
    }

    &-del {
        position: absolute;
        top: -13px;
        right: -20px;
        padding: 10px;
        color: #aaa;
        font-size: 16px;
    }

    .el-button--text {
        color: #aaa;
    }

    .el-button--text:active,
    .el-button--text:focus,
    .el-button--text:hover {
        color: #ed0626;
    }
}
</style>
